{% import "TopxiaAdminBundle::macro.html.twig" as admin_macro %}
{% if is_trial() %}
  <script>
    var _hmt = _hmt || [];
  </script>
  <script charset="utf-8" src="http://wpa.b.qq.com/cgi/wpa.php"></script>
  <div class="col-md-12">
    <div class="alert alert-warning">
      <p>
        &nbsp;&nbsp;{{'欢迎使用，试用将于'|trans}} 
        <span style="color:#fed032;"> 
          {% if trialTime.endTime is defined %}
            {{trialTime.endTime|date("Y-m-d")}} 
          {% else %} 
            {{'未知时间'|trans}}
          {% endif %}
        </span> 
        {{'到期,剩余'|trans}} 
        <span style="color:#fed032;">
          {% if trialTime.remainDays is defined %} {{ trialTime.remainDays }} {% else %}{{'未知'|trans}}{% endif %}
        </span> {{'天。'|trans}}
      </p>
      <p>
        &nbsp; {{'您可以联系销售人员购买授权版本，或者延长试用期限。'|trans}}{{'电话：'|trans}}4008041114 {{'或'|trans}}
        <span>
          <a id="BizQQWPA" href="javascript:" onclick="_hmt.push(['_trackEvent', 'advisory', 'click', 'qq'])" style='text-decoration:none;'>QQ：800023860 </a>。
        </span>
      </p>
    </div>
  </div>

  <script type="text/javascript">
    BizQQWPA.addCustom({aty: '0', a: '0', nameAccount: 800023860, selector: 'BizQQWPA'}); 
  </script>
{% else %}
    <div class="col-md-6">
      <div class="panel panel-default panel-150">
        <div class="panel-heading">
          <h3 class="panel-title">{{'站长公告'|trans}}</h3>
        </div>
        <div class="panel-body">
          <ul class="admin-notice-list">
          {% for notice in notices %}
            <li>
              <a class="link-primary" href="{{notice.detailUrl}}" target="_blank">{{notice.content}}</a>
              {# <span>{{notice.createdTime|date("Y-m-d H:i:s")}}</span>#}
            </li>
            {% else %}
              <div class="empty"> 暂无公告</div>
          {% endfor %}
          </ul>
        </div>
      </div>
    </div>
{% endif %}